<%@ page contentType="text/html;charset=UTF-8" trimDirectiveWhitespaces="true"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ include file="/WEB-INF/views/include/constrant.jsp"%>
<!DOCTYPE html>
<html>
<head>
<%@ include file="/WEB-INF/views/wx/include/head.jsp" %>
</head>
<body>
	<header class="mui-bar mui-bar-nav">
	<c:choose> 
		<c:when test="${tDemands.history == 'yes' }">
			<a href="${ctxWx}/pu/demands/list?history=yes" class="mui-icon mui-icon-left-nav mui-pull-left"></a>
		</c:when>
		<c:otherwise>
			<a href="${ctxWx}/pu/demands/list?reactstatus=${tDemands.reactstatus }" class="mui-icon mui-icon-left-nav mui-pull-left"></a>
		</c:otherwise>
	</c:choose>
		<h1 class="mui-title">${tDemands.departcity.sitename}-${tDemands.destcity.sitename}定制包车</h1>
	</header>
	<div class="mui-content">
		<c:if test="${not empty reactList }">
			<ul class="mui-table-view mui-table-view-striped mui-table-view-condensed">
				<c:forEach items="${reactList }" var="react">
					<li class="mui-table-view-cell">
						<div class="mui-pull-left">
							<p style="color:#000000;">${react.office.abbr }</p>
							<p>${react.seats }</p>
							<p>${react.price }</p>
							<p><fmt:formatDate value="${react.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/></p>
							<p>${react.remarks }</p>
						</div>
						<div class="mui-pull-right">
							<button class="mui-btn mui-btn-primary" onclick="window.location.href='${ctxWx }/pu/demands/book?reactid=${react.reactid}&demandid=${tDemands.demandid}'">去支付</button>
						</div>
					</li>
				</c:forEach>
			</ul>
			<p style="padding:10px 10px 0px 10px;">定制包车信息</p>
		</c:if>
		<div class="mui-input-group">
			<div class="mui-input-row">
				<label>出发地</label>
				<input type="text" value="${tDemands.departcity.sitename }" readonly/>
			</div>
			<div class="mui-input-row destcityHide">
				<label>目的地</label>
				<input type="text" value="${tDemands.destcity.sitename }" readonly/>
			</div>
			<div class="mui-input-row" style="height:100px;">
				<label class="control-label" for="modeldesc">行程描述</label>
				<textarea rows="3" name="modeldesc" readonly>${tDemands.modeldesc}</textarea>
			</div>
			<div class="mui-input-row">
				<label class="control-label" for="modeldesc">车型</label>
				<input type="text" value="${tDemands.cartype.typename }" readonly/>
			</div>
			<div class="mui-input-row">
				<label for="modeldesc">包车数量</label>
				<input name="vehiclenum" type="text" readonly value="${tDemands.vehiclenum }辆"/>
			</div>
			<div class="mui-input-row">
				<label>出发日期</label>
				<input type="text" value="<fmt:formatDate value="${tDemands.fromdate }" pattern="yyyy-MM-dd"/>" readonly>
			</div>
			<div class="mui-input-row">
				<label>出发时间</label>
				<input type="text" value="<fmt:formatDate value="${tDemands.fromdate }" pattern="HH:mm"/>" readonly>
			</div>
			<div class="mui-input-row">
				<label>包车天数</label>
				<input name="rentdays" type="text" value="${tDemands.rentdays }天" readonly/>
			</div>
			<div class="mui-input-row">
				<label>联系人</label>
				<input id="contactor" name="contactor" type="text" value="${tDemands.contactor}" readonly>
			</div>
			<div class="mui-input-row">
				<label>联系电话</label>
				<input id="contactphone" name="contactphone" type="text" value="${tDemands.contactphone}" readonly>
			</div>
			<div class="mui-input-row" style="height:100px;">
				<label class="control-label" for="remarks">备注</label>
				<textarea rows="3" name="remarks" maxlength="200" readonly>${tDemands.remarks}</textarea>
			</div>
		</div>
	</div>
	<%@ include file="/WEB-INF/views/wx/include/script.jsp"%>
</body>
</html>